package com.jhq.zuoye2.sevice.impl;

import com.jhq.zuoye2.dao.UserDao;
import com.jhq.zuoye2.dao.impl.UserDaoImpl;
import com.jhq.zuoye2.sevice.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author jianghaoqiang
 * @Date 2022/12/17
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    private UserDao userDao;
    @Override
    public String save() {
        System.out.println(this.userDao.save());
        return "invoke UserService";
    }

    public void setUserDao(UserDaoImpl userDao) {
        this.userDao=userDao;
    }
}
